﻿/****************************** Module Header ******************************\
 * Module Name:  tGeneralCouponIssue.cs
 * Module Version:  1.0.0 (2014-01-22)
 * Copyright (c) AnyEB.Com (14507247@qq.com)
 * 
 * This source is subject to the GPL License.
 * See http://www.gnu.org/licenses/gpl.html.
 * All other rights reserved.
 * 
 * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, 
 * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED 
 * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
\***************************************************************************/

using System;

namespace UCL.Data.ORM.UMD
{
    /// <summary>
    /// 通用-优惠券 数据实体类
    /// </summary>
    [DBTable(Common = "通用-优惠券发行")]
    public class tGeneralCouponIssue
    {
        /// <summary>
        /// 优惠券编码(流水号)
        /// </summary>
        public string SerialNo { get { return _SerialNo; } set { _SerialNo = value; } }

        [DBColumn(Alias = "优惠券编码", Common = "序列号或流水号", IsKey = true, Length = "32")]
        private string _SerialNo;

        /// <summary>
        /// 优惠券目录编号
        /// </summary>
        public int CouponID { get { return _CouponID ?? default(int); } set { _CouponID = value; } }

        [DBColumn(Alias = "优惠券目录编号")]
        private int? _CouponID;

        /// <summary>
        /// 状态(0=已使用,1=未使用,4=已作废)
        /// </summary>
        public short State { get { return _State ?? default(short); } set { _State = value; } }

        [DBColumn(Alias = "状态", DefaultValue = "0")]
        private short? _State;

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreatedTime { get { return _CreatedTime ?? default(DateTime); } set { _CreatedTime = value; } }

        [DBColumn(Alias = "创建时间", DefaultValue = "getdate()")]
        private DateTime? _CreatedTime;
    }
}
